import { Context } from 'koa'
import commonService from '../services/common'

export class CommonController {
async dictionary (ctx: Context) {
    const data = await commonService.dictionary()
    ctx.body = {
      code: 200,
      data,
      message: '查询成功'
    }
  }
}

export const commonController = new CommonController()
